home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / idosave.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.7 KB  |  43 lines

  1. /* Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: idosave.h,v 1.2 2000/09/19 19:00:43 lpd Exp $ */
  20. /* Supporting procedures for 'save' recording. */
  21.  
  22. #ifndef idosave_INCLUDED
  23. #  define idosave_INCLUDED
  24.  
  25. /*
  26.  * Save a change that must be undone by restore.  We have to pass the
  27.  * pointer to the containing object to alloc_save_change for two reasons:
  28.  *
  29.  *      - We need to know which VM the containing object is in, so we can
  30.  * know on which chain of saved changes to put the new change.
  31.  *
  32.  *      - We need to know whether the object is an array of refs (which
  33.  * includes dictionaries) or a struct, so we can properly trace and
  34.  * relocate the pointer to it from the change record during garbage
  35.  * collection.
  36.  */
  37. int alloc_save_change(P4(gs_dual_memory_t *dmem, const ref *pcont,
  38.              ref_packed *ptr, client_name_t cname));
  39. int alloc_save_change_in(P4(gs_ref_memory_t *mem, const ref *pcont,
  40.                 ref_packed *ptr, client_name_t cname));
  41.  
  42. #endif /* idosave_INCLUDED */
  43.